//main.ts

import { createApp } from 'vue'
import App from '@/App.vue'
import ElementUI from 'element-plus'
import locale from 'element-plus/lib/locale/lang/zh-cn'
//导入router配置文件
import route from '@/route/router'
import store from '@/store/store'
//类似于:
/**
vue-cli:
Vue.use(router)
const app = new Vue({
	render: h => h(App)
}).$mount("#app")
*/

const app = createApp(App)
app.use(ElementUI, { locale })
//全局注册
app.use(route)
app.use(store)

app.mount('#app')